#include <opencv2/opencv.hpp>
using namespace cv;
int main() {
		Mat webcam;
		VideoCapture capture;
		capture.open(0);
		std::string window = "video";
		namedWindow(window, CV_WINDOW_KEEPRATIO);
		for(;;) {
				capture >> webcam;
				if (webcam.empty())
						continue;
				imshow(window, webcam);
		}
		return 0;
}
